package com.ghpt.service.impl;

import com.ghpt.mapper.ReCNMapper;
import com.ghpt.pojo.ReCN;
import com.ghpt.service.ReCNService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReCNServiceImpl implements ReCNService {
    @Autowired
    private ReCNMapper reCNMapper;

    @Override
    public ReCN findReCNById(Long id) {
        if (id != null) {
            return reCNMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(ReCN reCN) {
        return reCNMapper.updateById(reCN);//更新成功为1否则为0
    }
}
